import React from 'react';
import ReactDOM from 'react-dom';
import './index.less';
import App from './App';
import zhCN from 'antd/es/locale/zh_CN';
import { Provider } from 'react-redux';
import { ConfigProvider } from 'antd';
import reportWebVitals from './reportWebVitals';
import setupAxiosInterceptors from 'config/axios-interceptor';
import store from 'public/TS/store';
setupAxiosInterceptors();

ReactDOM.render(
    <Provider store={store}>
        <ConfigProvider locale={zhCN}>
            <App />
        </ConfigProvider>
    </Provider>,

    document.getElementById('root')
);
reportWebVitals();
